<input hidden="hidden" id="navValue" value="股东列表">
<div class="page-content">
    <div class="page-header">
        <h1>
            股东管理
            <small>
                <i class="ace-icon fa fa-angle-double-right"></i>
                提现列表
            </small>
        </h1>
    </div><!-- /.page-header -->
    <form action="{:url('getWithdrawals')}" method="get" name="search" id="search">
        <div class="form-group">
            <div class="col-sm-8">
                <div class='input-group'>
                    <div class='input-group-addon'>订单号</div>
                    <input class="form-control" name="orderId" type="text" value="{:input('get.orderId')}"
                           placeholder="订单号">
                    <div class='input-group-addon'>手机号</div>
                    <input class="form-control" name="phone" type="text" value="{:input('get.phone')}"
                           placeholder="手机号">
                    <div class='input-group-addon'>状态</div>
                    <select class="form-control" id="status" name="status">
                        <option value="">全部</option>
                        <option value="1">审核中</option>
                        <option value="2">审核通过</option>
                        <option value="4">审核不通过</option>
                        <option value="6">已完成</option>
                        <option value="5">已取消</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-6">
                <div class='input-group'>
                    <div class='input-group-addon'>申请日期</div>
                    <input class="date" type="date" name="startDate" value="{:input('get.startDate')}">-<input
                        class="date" type="date" name="endDate" value="{:input('get.endDate')}">
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-7">
                <button type="submit"
                        class="btn btn-white btn-primary"
                        title="搜索"><span><i class="fa fa-search bigger-110 "></i> 搜索</span></button>

                <button type="button" id="excelBtn" class="btn btn-sm btn-success">
                    导出
                    <i class="ace-icon fa fa-arrow-right icon-on-right bigger-110"></i>
                </button>
            </div>
        </div>
    </form>
    <div class="row">
        <div class="col-xs-12">
            <table id="simple-table" class="table  table-bordered table-hover">
                <thead>
                <tr>
                    <th class="center">姓名</th>
                    <th class="center">手机号</th>
                    <th class="center">银行</th>
                    <th class="center">卡号</th>
                    <th class="center">金额</th>
                    <th class="center">状态</th>
                    <th class="center">日期</th>
                    <th class="center">操作</th>
                </tr>
                </thead>

                <tbody>
                {volist name="lists" id="list"}
                <tr class="center">
                    <td>{$list['name']}</td>
                    <td>{$list['phone']}</td>
                    <td>{$list['bank']}<br/>（{$list['provance']}{$list['city']}{$list['bankname']}）<br>{$list['bankname']}</td>
                    <td>{$list['number']}<br/>（{$list['orderid']}）</td>
                    <td>{$list['money']}</td>
                    <td>{$statusNames[$list['status']]}</td>
                    <td>{$list['date']}</td>
                    <td>
                        {switch name="$list['status']" }
                        {case value="1"}
                        <div class="hidden-sm hidden-xs btn-group">
                            <button class="btn btn-xs btn-warning" value="1-{$list['id']}" name="deal" form="deal"
                                    OnClick="return confirm('你确定审核通过吗？')">
                                通过
                            </button>
                        </div>
                        <div class="hidden-sm hidden-xs btn-group">
                            <button class="btn btn-xs btn-danger" value="0-{$list['id']}" name="deal" form="deal"
                                    OnClick="return confirm('你确定审核不通过吗？')">
                                不通过
                            </button>
                        </div>
                        {/case}
                        {case value="2"}
                        <div class="hidden-sm hidden-xs btn-group">
                            <button class="btn btn-xs btn-success" value="2-{$list['id']}" name="deal" form="deal">
                                交易完成
                            </button>
                        </div>
                        {/case}
                        {case value="3"}
                        <div class="hidden-sm hidden-xs btn-group">
                            <button class="btn btn-xs btn-success" value="4-{$list['id']}" name="deal" form="deal">
                                已完成
                            </button>
                        </div>
                        {/case}
                        {case value="4"}
                        <div class="hidden-sm hidden-xs btn-group">
                            <button class="btn btn-xs btn-info" value="3-{$list['id']}" name="deal" form="deal">
                                短信通知
                            </button>
                        </div>
                        {/case}
                        {default /}
                        {/switch}
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
        </div><!-- /.span -->
        <div style="width:100%; text-align: center">
            {$lists->render()}
        </div>
    </div><!-- /.row -->

    <div class="hr hr-18 dotted hr-double"></div>
    <form action="{:url('withdrawalDeal')}" method="get" name="deal" id="deal">
    </form>
    <form action="{:url('getWithdrawals')}" method="get" name="search" id="search">
    </form>
    <script type="text/javascript">
        $("#status").val("{$search}");
        $("#excelBtn").click(function () {
            var url = location.href.replace(/getWithdrawals/i,'excelWithdrawals');

            location.href = url;
        });

    </script>
    <!-- PAGE CONTENT ENDS -->
</div><!-- /.col -->
</div><!-- /.row -->
</div>
